﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Abreu.Profile.Database;
using System.Collections.ObjectModel;
using Abreu.Profile.ObjectClasses;

namespace Abreu.Profile.Classes
{
    public class Category : IDisposable
    {
        #region Class Members
        CorpAbreuDataContext _corpAbreuDC = new CorpAbreuDataContext();
        #endregion

        #region Public Methods
        /// <summary>
        /// Gets the category info using all the items in the T_EmployeeUserSectionCategory of the user
        /// </summary>
        /// <param name="listProfileInfo"></param>
        /// <returns>Collection of CategoryInfo</returns>
        public Collection<CategoryInfo> GetCategoryByCollection(Collection<ProfileInfo> listProfileInfo)
        {
            Collection<CategoryInfo> listCategoryInfo = new Collection<CategoryInfo>();
           

            //Returns collection
            return listCategoryInfo;
        }

        /// <summary>
        /// Gets the category info using the isMaster item in the T_EmployeeUserSectionCategory of the user
        /// </summary>
        /// <param name="profileInfo"></param>
        /// <returns>CategoryInfo struct</returns>
        public CategoryInfo GetCategory(ProfileInfo profileInfo)
        {
            CategoryInfo listCategoryInfo = null;


            //Returns collection
            return listCategoryInfo;
        }

        /// <summary>
        /// Dispose members of class
        /// </summary>
        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);

        }
        #endregion

        #region Private Methods
        private void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_corpAbreuDC != null)
                {
                    _corpAbreuDC.Dispose();
                    _corpAbreuDC = null;
                }
            }
        }
        #endregion
    }
}
